import request from "@/utils/request.js";
//根据id获取文章
export function getArticle(id) {
	const url = `home_article/getById/${id}`;
	return request.get(url);
}

export function getArticleList(pageNum, pageSize, data) {
	let url = `home_article/getPage?pageNum=${encodeURIComponent(pageNum)}&pageSize=${encodeURIComponent(pageSize)}`;
	const body = {
		typeId: data.type,
		storeId:data.storeId,
	};
	return request.post(url, body);
}